<?php
class CourseController extends BaseController
{

	public function actionIndex(){
		echo 'cource index';
		$this->display('course_index.tpl');
	}
	
	public function action_detail(){
		//$this->tree = obj('Tree')->getPathByItem('php');
		
		$this->item = $this->arg('item');
		$this->uri = $this->arg('uri');
		$this->tree = obj('Tree')->getNoteByItem($this->item,'&nbsp;&nbsp;&nbsp;');
		
		$this->course = obj('Course')->find(array('uri'=>$this->uri));
		$this->display('course_detail.tpl');
	}
	
	public function action_edit(){
		echo 'cource edit';
		//$this->display('func_detail.tpl');
	}
	
	public function actionEdit(){
		
		//$this->display('func_detail.tpl');
	}
	
}